Outdated bash operator import on Composer 2 Docs #11433#11440
Outdated bash operator import on Composer 2 Docs #11433#11440leahecole merged 19 commits intoGoogleCloudPlatform:mainfrom
Conversation
Update samples for google-cloud-speech to improve usability
…bility Handling Issue GoogleCloudPlatform#11248
…mples Handling Issue GoogleCloudPlatform#11248 - Update samples for google-cloud-speech to improve usability
Outdated bash operator import on Composer 2 Docs GoogleCloudPlatform#11433
Outdated bash operator import on Composer 2 Docs GoogleCloudPlatform#11433
georgetayloor
left a comment
There was a problem hiding this comment.
outdated python operator import, change to:
from airflow.operators.python import PythonOperator
|
|
||
| from airflow.operators.bash_operator import BashOperator | ||
| from airflow.operators.bash import BashOperator | ||
| from airflow.operators.python_operator import PythonOperator |
There was a problem hiding this comment.
from airflow.operators.python import PythonOperator
| from airflow.providers.google.cloud.operators.gcs import GCSCreateBucketOperator | ||
| from airflow.providers.google.cloud.operators.gcs import GCSDeleteBucketOperator | ||
| from airflow.providers.google.cloud.operators.gcs import GCSListObjectsOperator |
There was a problem hiding this comment.
Not sure on styling specifics, is more concise for:
from airflow.providers.google.cloud.operators.gcs import GCSCreateBucketOperator, GCSDeleteBucketOperator, GCSListObjectsOperator?
georgetayloor
left a comment
There was a problem hiding this comment.
LGTM: one note on styling when importing multiple classes from same package
There was a problem hiding this comment.
I left some comments - there are places where the BashOperator should not be modified. Additionally, please revert the changes in the endpoint and speech directories and submit them as separate PRs with linked issues. Additionally, I changed it to be a Draft PR while lint and tests are not passing. Feel free to change it back to "ready to review" once they are passing!
composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/dags/example_dag.py
Outdated
Show resolved
Hide resolved
reverting Airflow 1 changes where relevant
Removing changes made in GoogleCloudPlatform#11332
revert speech code changes
Description
Fixes #11433
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
nox -s py-3.9(see Test Environment Setup)nox -s lint(see Test Environment Setup)